<?php
namespace BP\GPM;
require_once("BP/En/Map.php");
class Station extends EntityNoName {
	public function getFK_StationType () 
	{
		return $this->GetValStrByKey(StationAttr::$FK_StationType);
	}
	public function setFK_StationType ($value) // [String value]
	{
		$this->SetValByKey(StationAttr::$FK_StationType, $value);
	}
	public function getHisUAC () 
	{
		$uac = new UAC();
		$uac->OpenForSysAdmin();
		return $uac;
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public static function constructor__String ($_No) // [String _No]
	{
		$me = new self();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("Port_Station", "岗位");
		$map->Java_SetEnType($EnType->Admin);
		$map->Java_SetDepositaryOfMap($Depositary->Application);
		$map->Java_SetDepositaryOfEntity($Depositary->None);
		$map->AddTBStringPK(StationAttr::$No, NULL, "编号",  TRUE ,  FALSE , 1, 50, 200);
		$map->AddTBString(StationAttr::$Name, NULL, "名称",  TRUE ,  FALSE , 0, 100, 200);
		$map->AddDDLEntities(StationAttr::$FK_StationType, NULL, "类型", StationTypes::constructor__(),  TRUE );
		$map->AddTBString(StationAttr::$OrgNo, NULL, "隶属组织",  TRUE ,  FALSE , 0, 50, 250);
		$map->AddSearchAttr(StationAttr::$FK_StationType);
		$this->set_enMap($map);
		return $this->get_enMap();
	}
}
?>
